package com.idreems.item;

import java.util.ArrayList;
import java.util.List;

public class Item {

    public String mTitle;
    public int mIconRes;
    public String type;
    private List<Item>mSubItems =new ArrayList<Item>();

    public Item(String title,String type, int iconRes) {
        mTitle = title;
        mIconRes = iconRes;
        this.type = type;
    }
    
    public List<Item> subItems()
    {
    	return mSubItems;
    }
    public void setSubItems(List<Item> items)
    {
    	if (items!=null && items.size()>0)
		{
    		mSubItems.clear();
    		mSubItems.addAll(items);
		}
    }
}
